package de.fhtrier.mp.wollmaus.gamestate.menus;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.geom.Vector2f;
import org.newdawn.slick.state.StateBasedGame;

import de.fhtrier.mp.wollmaus.entity.Entity;
import de.fhtrier.mp.wollmaus.util.AssetManager;

public class WonState extends AbstractSubMenuState {
	public WonState(MenuState menu) {
		super(menu,AssetManager.IMAGE_MENU_WON);
		
		addEntity(new Entity(new Vector2f(670,280), AssetManager.ANI_SLEEP_SPIDER));
		addEntity(new Entity(new Vector2f(197,556), AssetManager.ANI_SLEEP_FLOCKE));
	}

	// Hauptmenü
	@Override
	public void button1Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		menu.setMenuState(new MainState(menu));
	}

	@Override
	public void button2Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		menu.setMenuState(new StoryState(menu));
	}

	@Override
	public void button3Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		menu.setMenuState(new CreditsState(menu));
	}

	@Override
	public void button4Pressed(GameContainer gc, StateBasedGame sbg, int delta) {
		menu.exit(gc);
	}
}